<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../utils/flexible.js"></script>
    <link rel="stylesheet" href="../css/index2.css">
</head>

<body>
    <header class="header">
        <a href="../index.html">&lt;</a>
        <p>省钱控-最新优惠</p>
        <span><img src="../assets/images/header_app.png" alt=""></span>
    </header>
    <div class="container-1">

    </div>
    <section id="footer">
        <button>更多优惠信息&gt;&gt;</button>
        <div class="brand">
            <span>品牌排行</span>
            <a href="#"><img src="../assets/images/more.png" alt=""></a>
        </div>
    </section>
    <div id="login">
        <div class="container">
            <a href="#">登入</a>
            <a href="#">注册</a>
            <a href="#" class="gotop">返回顶部</a>
        </div>
        <p>手机APP下载 慢点买手机版--掌上比价平台</p>
        <span>m.mandianmai.com</span>
    </div>
</body>

</html>
<script src="../utils/qr.js"></script>
<script>
    // console.log(location.href);
    (function () {
        let container = document.querySelector(".container-1")
        let url = location.href;

        let {productid} = getUrlParams(url);

        fetch(`http://chst.vip:1234/api/getmoneyctrlproduct?productid=${productid}`)
            .then(body => body.json())
            .then(res => {
                console.log(res);
                let result = res.result[0]
                let html2 = `
                        <h3>${result.productName}</h3>
                        <p>${result.productFrom}|${result.productTime}|${result.productTips}</p>
                        <b>${result.productImg2}</b>
                        <span>${result.productInfo}${result.productInfo1}</span>
                        <ul>${result.productCity}</ul>
                        <h4>${result.productComment}</h4>
                    `
                container.innerHTML = html2;
            })
            
    })()
</script>